package request

type OrderStatisticsReq struct {
	Date string `json:"date" form:"date" binding:"required"`
}

// 订单统计数据
type OrderStatisticsRangeReq struct {
	StartDate string `json:"start_date" form:"start_date" binding:"required"`
	EndDate   string `json:"end_date" form:"end_date" `
}

// 平均价参数
type DateAverageOrderAmountReq struct {
	StartTime string `json:"start_time" form:"start_time" binding:"required"`
	EndTime   string `json:"end_time" form:"end_time"`
	OrderType int64  `json:"order_type" form:"order_type"`
	PayWay    int64  `json:"pay_way" form:"pay_way"`
}
type OrderAvgReq struct {
	Date      string `json:"date" form:"date" binding:"required"`
	OrderType int64  `json:"order_type" form:"order_type"`
	PayWay    int64  `json:"pay_way" form:"pay_way"`
}

// 购买转化分析请求参数
type PurchaseConversionReq struct {
	StartTime string `json:"start_time" form:"start_time" binding:"required"`
	EndTime   string `json:"end_time" form:"end_time"`
	OrderType int64  `json:"order_type" form:"order_type"`
	PayWay    int64  `json:"pay_way" form:"pay_way"`
}

// 按时间间隔统计复购人数请求参数
type GetRepurchaseByIntervalReq struct {
	StartTime string `json:"start_time" form:"start_time" binding:"required"`
	EndTime   string `json:"end_time" form:"end_time"`
	OrderType int64  `json:"order_type" form:"order_type"`
	PayWay    int64  `json:"pay_way" form:"pay_way"`
}
